home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 1
/
CU Amiga Magazine CD-ROM Special Edition (1995)(EMAP Images)(GB)[Issue 1995-11].iso
/
Aminet
/
comm
/
tcp
/
AmigaTCP.lha
/
AmigaTCP
/
src
/
ether.h
< prev
next >
Wrap
C/C++ Source or Header
|
1989-06-24
|
549b
|
21 lines
/* Generic Ethernet constants and templates */
#define EADDR_LEN 6
/* Format of an Ethernet header */
struct ether {
char dest[EADDR_LEN];
char source[EADDR_LEN];
int16 type;
};
/* Ethernet broadcast address */
extern char ether_bdcst[];
/* Ethernet type fields */
#define IP_TYPE 0x800 /* Type field for IP */
#define ARP_TYPE 0x806 /* Type field for ARP */
#define HDR sizeof(struct ether) /* Size of Ethernet header */
#define RUNT 60 /* smallest legal size packet, no fcs */
#define GIANT 1514 /* largest legal size packet, no fcs */